package com.dldata.devtools30.entity;

import jakarta.persistence.*;

import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "devt_function_list")
public class DevtFunctionListEntity {
    private String id;
    private String code;
    private String name;
    private String type;
    private String url;
    private Integer xh;
    private Integer delflag;
    private String bz;
    private Timestamp createtime;
    
    @Basic
    @Column(name = "delflag", nullable = true, length = 255)
    public Integer getDelflag() {
        return delflag;
    }
    
    public void setDelflag(Integer delflag) {
        this.delflag = delflag;
    }
    
    @Basic
    @Column(name = "createtime", nullable = true, length = 255)
    public Timestamp getCreatetime() {
        return createtime;
    }
    
    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }
    
    @Basic
    @Column(name = "bz", nullable = true, length = 255)
    public String getBz() {
        return bz;
    }
    
    public void setBz(String bz) {
        this.bz = bz;
    }
    
    @Basic
    @Column(name = "xh", nullable = true, length = 255)
    public Integer getXh() {
        return xh;
    }
    
    public void setXh(Integer xh) {
        this.xh = xh;
    }
    
    @Id
    @Column(name = "id", nullable = false, length = 64)
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Basic
    @Column(name = "code", nullable = true, length = 255)
    public String getCode() {
        return code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }
    
    @Basic
    @Column(name = "name", nullable = true, length = 255)
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Basic
    @Column(name = "type", nullable = true, length = 255)
    public String getType() {
        return type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
    
    @Basic
    @Column(name = "url", nullable = true, length = 255)
    public String getUrl() {
        return url;
    }
    
    public void setUrl(String url) {
        this.url = url;
    }
    
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DevtFunctionListEntity that = (DevtFunctionListEntity) o;
        return Objects.equals(id, that.id) && Objects.equals(code, that.code) && Objects.equals(name, that.name) && Objects.equals(type, that.type) && Objects.equals(url, that.url);
    }
    
    @Override
    public int hashCode() {
        return Objects.hash(id, code, name, type, url);
    }
}
